package com.xm.transfer.utils;


import com.alibaba.druid.pool.DruidDataSource;

public class DruidUtils {

    private DruidUtils(){}

    private volatile static DruidDataSource druidDataSource = new DruidDataSource();

    static {
        druidDataSource.setDriverClassName("com.mysql.cj.jdbc.Driver");
        druidDataSource.setUrl("jdbc:mysql://localhost:3306/lean-data");
        druidDataSource.setUsername("root");
        druidDataSource.setPassword("root");
    }

    public static DruidDataSource getInstance() {
        return druidDataSource;
    }

}
